package com.dao;

import com.entity.FavouriteJob;
import com.entity.Resume;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

public interface JobDao {
    public List<Object> selectJobList(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public List<Object> selectJobListById(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public List<Object> collectJobListById(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public List<Object> selectPublishJobListById(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public List<Object> selectPublishedJobListById(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public List<Object> selectAllJobList(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public List<Object> selectAllLike(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
//    public List<Object> selectDeliverdResume(HttpServletRequest req, HttpServletResponse resp)  throws SQLException, ServletException, IOException;
    public int countJob(HttpServletRequest req, HttpServletResponse resp) throws SQLException, ServletException, IOException;
    public int countAllJob(HttpServletRequest req, HttpServletResponse resp) throws SQLException, ServletException, IOException;
    public int countAllLike(HttpServletRequest req, HttpServletResponse resp) throws SQLException, ServletException, IOException;
    public int countJobById(HttpServletRequest req, HttpServletResponse resp) throws SQLException, ServletException, IOException;
    public int countPublishJobById(HttpServletRequest req, HttpServletResponse resp) throws SQLException, ServletException, IOException;
    public int countPublishedJobById(HttpServletRequest req, HttpServletResponse resp) throws SQLException, ServletException, IOException;
    public int RemoveFavouriteJob(Resume resume) throws SQLException, ServletException, IOException;
    public int isFavouriteJob(FavouriteJob favouriteJob) throws SQLException, ServletException, IOException;
}
